package com.huarui.receivable.service;

import java.util.List;
import java.util.Map;



import org.ewaf.framework.model.ListModel;
import org.ewaf.framework.service.BaseService;


import com.huarui.receivable.dao.IReceivableDao;

public class ReceivableService extends BaseService {
	private IReceivableDao getDao() {
		return (IReceivableDao) dao;
	}
	@SuppressWarnings("unchecked")
	public List<Map> getListForPaging(ListModel lm,Map<String,Object> map){
		Integer total=this.getDao().getListCountByConditions(map);
		lm.setTotal(total);
		map.put("listModel", lm);
		List<Map> list=getDao().getListByConditions(map);
		lm.setResult(list);
		return list;
	}
	public List<Map> getListByConditions(Map map){
		List<Map> list=getDao().getListByConditions(map);
		return list;
	}
	
}
